//
//  HKCacheObject.h
//  HKNetService
//
//  Created by 胡锦涛 on 2018/6/12.
//  Copyright © 2018年 胡锦涛. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HKCacheObject : NSObject
@property (nonatomic, copy, readonly) NSData *content;
@property (nonatomic, copy, readonly) NSDate *lastUpdateTime;

@property (nonatomic, assign, readonly) BOOL isOutdated;//是否过时
@property (nonatomic, assign, readonly) BOOL isEmpty;//是否空

- (instancetype)initWithContent:(NSData *)content;
- (void)updateContent:(NSData *)content;
@end
